﻿using ET.CommonLibrary;
using ET.Score.Service;
using ET.Score.Service.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DispatchingTelephonePOC
{
    public class AccountServiceCallBack : IAccountManageCallBack
    {
        public event EventHandler<GeneralEventArgs<ArgumentExam>> MessageReceived;
        public void OnMessageReceived(ArgumentExam msg)
        {
            InternalOnMessageReceived(msg);
        }
        /// <summary>
        /// 收到新的回调消息时，会触发该方法
        /// </summary>
        /// <param name="arg"></param>
        protected virtual void InternalOnMessageReceived(ArgumentExam arg)
        {
            MessageReceived?.Invoke(this, GeneralEventArgs.Create(arg));
        }
    }
}
